﻿<Window x:Name="Dock" x:Class="MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="MainWindow" Height="354" Width="64" Background="#00000000" ShowActivated="False" AllowsTransparency="True" WindowStyle="None" BorderBrush="Black" Foreground="White" Topmost="True" ShowInTaskbar="False" ResizeMode="NoResize">
    <Window.Resources>
        <Storyboard x:Key="hStoryboard">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Width)" Storyboard.TargetName="PinStackPanel">
                <EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="0.5">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <CircleEase EasingMode="EaseInOut"/>
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="sStoryboard">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Width)" Storyboard.TargetName="PinStackPanel">
                <EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="48">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <CircleEase EasingMode="EaseInOut"/>
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
    </Window.Resources>
    <Window.Triggers>
        <EventTrigger RoutedEvent="FrameworkElement.Loaded">
            <BeginStoryboard x:Name="hStoryboard_BeginStoryboard" Storyboard="{StaticResource hStoryboard}"/>
            <BeginStoryboard x:Name="sStoryboard_BeginStoryboard" Storyboard="{StaticResource sStoryboard}"/>
        </EventTrigger>
    </Window.Triggers>
    <StackPanel x:Name="PinStackPanel" Width="48" Background="#00000000" HorizontalAlignment="Left" AllowDrop="True">
        <StackPanel.Effect>
            <DropShadowEffect ShadowDepth="0" BlurRadius="12"/>
        </StackPanel.Effect>
    </StackPanel>
</Window>
